package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class OrderformitemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OrderformitemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOinoIsNull() {
            addCriterion("oino is null");
            return (Criteria) this;
        }

        public Criteria andOinoIsNotNull() {
            addCriterion("oino is not null");
            return (Criteria) this;
        }

        public Criteria andOinoEqualTo(String value) {
            addCriterion("oino =", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoNotEqualTo(String value) {
            addCriterion("oino <>", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoGreaterThan(String value) {
            addCriterion("oino >", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoGreaterThanOrEqualTo(String value) {
            addCriterion("oino >=", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoLessThan(String value) {
            addCriterion("oino <", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoLessThanOrEqualTo(String value) {
            addCriterion("oino <=", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoLike(String value) {
            addCriterion("oino like", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoNotLike(String value) {
            addCriterion("oino not like", value, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoIn(List<String> values) {
            addCriterion("oino in", values, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoNotIn(List<String> values) {
            addCriterion("oino not in", values, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoBetween(String value1, String value2) {
            addCriterion("oino between", value1, value2, "oino");
            return (Criteria) this;
        }

        public Criteria andOinoNotBetween(String value1, String value2) {
            addCriterion("oino not between", value1, value2, "oino");
            return (Criteria) this;
        }

        public Criteria andOinameIsNull() {
            addCriterion("oiname is null");
            return (Criteria) this;
        }

        public Criteria andOinameIsNotNull() {
            addCriterion("oiname is not null");
            return (Criteria) this;
        }

        public Criteria andOinameEqualTo(String value) {
            addCriterion("oiname =", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameNotEqualTo(String value) {
            addCriterion("oiname <>", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameGreaterThan(String value) {
            addCriterion("oiname >", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameGreaterThanOrEqualTo(String value) {
            addCriterion("oiname >=", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameLessThan(String value) {
            addCriterion("oiname <", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameLessThanOrEqualTo(String value) {
            addCriterion("oiname <=", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameLike(String value) {
            addCriterion("oiname like", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameNotLike(String value) {
            addCriterion("oiname not like", value, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameIn(List<String> values) {
            addCriterion("oiname in", values, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameNotIn(List<String> values) {
            addCriterion("oiname not in", values, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameBetween(String value1, String value2) {
            addCriterion("oiname between", value1, value2, "oiname");
            return (Criteria) this;
        }

        public Criteria andOinameNotBetween(String value1, String value2) {
            addCriterion("oiname not between", value1, value2, "oiname");
            return (Criteria) this;
        }

        public Criteria andOidescIsNull() {
            addCriterion("oidesc is null");
            return (Criteria) this;
        }

        public Criteria andOidescIsNotNull() {
            addCriterion("oidesc is not null");
            return (Criteria) this;
        }

        public Criteria andOidescEqualTo(String value) {
            addCriterion("oidesc =", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescNotEqualTo(String value) {
            addCriterion("oidesc <>", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescGreaterThan(String value) {
            addCriterion("oidesc >", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescGreaterThanOrEqualTo(String value) {
            addCriterion("oidesc >=", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescLessThan(String value) {
            addCriterion("oidesc <", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescLessThanOrEqualTo(String value) {
            addCriterion("oidesc <=", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescLike(String value) {
            addCriterion("oidesc like", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescNotLike(String value) {
            addCriterion("oidesc not like", value, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescIn(List<String> values) {
            addCriterion("oidesc in", values, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescNotIn(List<String> values) {
            addCriterion("oidesc not in", values, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescBetween(String value1, String value2) {
            addCriterion("oidesc between", value1, value2, "oidesc");
            return (Criteria) this;
        }

        public Criteria andOidescNotBetween(String value1, String value2) {
            addCriterion("oidesc not between", value1, value2, "oidesc");
            return (Criteria) this;
        }

        public Criteria andUrnoIsNull() {
            addCriterion("urno is null");
            return (Criteria) this;
        }

        public Criteria andUrnoIsNotNull() {
            addCriterion("urno is not null");
            return (Criteria) this;
        }

        public Criteria andUrnoEqualTo(String value) {
            addCriterion("urno =", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoNotEqualTo(String value) {
            addCriterion("urno <>", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoGreaterThan(String value) {
            addCriterion("urno >", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoGreaterThanOrEqualTo(String value) {
            addCriterion("urno >=", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoLessThan(String value) {
            addCriterion("urno <", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoLessThanOrEqualTo(String value) {
            addCriterion("urno <=", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoLike(String value) {
            addCriterion("urno like", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoNotLike(String value) {
            addCriterion("urno not like", value, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoIn(List<String> values) {
            addCriterion("urno in", values, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoNotIn(List<String> values) {
            addCriterion("urno not in", values, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoBetween(String value1, String value2) {
            addCriterion("urno between", value1, value2, "urno");
            return (Criteria) this;
        }

        public Criteria andUrnoNotBetween(String value1, String value2) {
            addCriterion("urno not between", value1, value2, "urno");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}